<?php

namespace App\Http\Controllers\Home\Article;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\DB;

class ReplyController extends Controller {
    //
    public function gets(Request $request) {
        $id = $request->input('id');
        if(!isset($id) && empty($id)) {
            return $this->ajax(false, '获取失败');
        }
        $ret = DB::table('reply')->where('article_id', '=', intval($id))->get();
        return $this->ajax(true, $ret);
    }
}
